import createRequest from "./request";

console.log( process.env )
console.log( process.env.VUE_APP_DATA_API )

// const request = createRequest("http://127.0.0.1:3002/api/")
// const request = createRequest("/proxyApi/")

// const dataUrl = process.env.NODE_ENV=="production"?"http://127.0.0.1:3002/api/":"/proxyApi/"
// const request = createRequest(dataUrl)


const request = createRequest(process.env.VUE_APP_DATA_API)

const loadUserList = function () {
    return request.get("users")
}

export default {
    loadUserList
}